/*
 * @Description:
 * @Author: xunzhaotech
 * @Email: luyb@xunzhaotech.com
 * @QQ: 1525572900
 * @Date: 2025-03-05 13:41:52
 * @LastEditTime: 2025-03-23 11:16:50
 * @LastEditors: xunzhaotech
 */
import request from '@/config/axios'

// ERP 客户回访内容 VO
export interface CustomerFollowUpContentVO {
  id: number // 内容编号
  planId: number // 计划编号
  content: string // 回访内容
  followUpUser: string // 回访人
  followUpTime: string // 回访时间
}

// ERP 客户回访内容 API
export const CustomerFollowUpContentApi = {
  // 查询ERP 客户回访内容分页
  getCustomerFollowUpContentPage: async (params: any) => {
    return await request.get({ url: `/erp/customer-follow-up-content/page`, params })
  },

  // 查询ERP 客户回访内容详情
  getCustomerFollowUpContent: async (id: number) => {
    return await request.get({ url: `/erp/customer-follow-up-content/get?id=` + id })
  },

  // 新增ERP 客户回访内容
  createCustomerFollowUpContent: async (data: CustomerFollowUpContentVO) => {
    return await request.post({ url: `/erp/customer-follow-up-content/create`, data })
  },

  // 修改ERP 客户回访内容
  updateCustomerFollowUpContent: async (data: CustomerFollowUpContentVO) => {
    return await request.put({ url: `/erp/customer-follow-up-content/update`, data })
  },

  // 删除ERP 客户回访内容
  deleteCustomerFollowUpContent: async (id: number) => {
    return await request.delete({ url: `/erp/customer-follow-up-content/delete?id=` + id })
  },

  // 导出ERP 客户回访内容 Excel
  exportCustomerFollowUpContent: async (params) => {
    return await request.download({ url: `/erp/customer-follow-up-content/export-excel`, params })
  }
}
